package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ParamAccess entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "PARAM_ACCESS")
public class ParamAccess implements java.io.Serializable {

	// Fields

	private String guid;
	private Terminal terminal;
	private String name;
	private String userName;
	private String pwd;
	private String di1;
	private String di2;
	private String do1;
	private String do2;
	private String managerServerIp;

	@Id
	@Column(name = "GUID", unique = true, nullable = false, length = 64)
	public String getGuid() {
		return this.guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "GUID", unique = true, nullable = false, insertable = false, updatable = false)
	public Terminal getTerminal() {
		return this.terminal;
	}

	public void setTerminal(Terminal terminal) {
		this.terminal = terminal;
	}

	@Column(name = "NAME", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "user_name", length = 40)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "PWD", length = 32)
	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	@Column(name = "DI1", length = 2)
	public String getDi1() {
		return this.di1;
	}

	public void setDi1(String di1) {
		this.di1 = di1;
	}

	@Column(name = "DI2", length = 2)
	public String getDi2() {
		return this.di2;
	}

	public void setDi2(String di2) {
		this.di2 = di2;
	}

	@Column(name = "DO1", length = 2)
	public String getDo1() {
		return this.do1;
	}

	public void setDo1(String do1) {
		this.do1 = do1;
	}

	@Column(name = "DO2", length = 2)
	public String getDo2() {
		return this.do2;
	}

	public void setDo2(String do2) {
		this.do2 = do2;
	}

	@Column(name = "MANAGER_SERVER_IP", length = 64)
	public String getManagerServerIp() {
		return this.managerServerIp;
	}

	public void setManagerServerIp(String managerServerIp) {
		this.managerServerIp = managerServerIp;
	}

}